Release 10.1A: OpenEdge Development:
Progress 4GL Reference


INTERVAL function

Returns the time interval between two DATE, DATETIME, or DATETIME-TZ values.

Syntax

INTERVAL (datetime1, datetime2, interval-unit) 

datetime1

An expression whose value is a DATE, DATETIME, or DATETIME-TZ.

datetime2

An expression whose value is a DATE, DATETIME, or DATETIME-TZ.

interval-unit

A character constant, or a character expression that evaluates to one of the following time units: ‘years’, ‘months’, ‘weeks’, ‘days’, 'hours’, ‘minutes’, ‘seconds’ or ‘milliseconds’. These values are case insensitive and may be singular.

Notes


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095